Lazy-copying lazy-allocated scanning [str
] transformations.
This is good e.g. for (un)escaping text, especially if individual strings are short.
Note that this library uses [smartstring] (and as such returns [Woc
]s instead of [Cow
]s).
The output is still [Deref<Target = str>
] regardless, so there should be no issue with ease of use.
Example
use ;
assert_eq!;
assert_eq!;
See [escape_double_quotes
] and [unescape_backlashed_verbatim
]'s sources for more real-world examples.